package com.njtoyo.taxi.admin.rest.wrapper.business.driver;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "司机扣分")
public class SetDriverCancelRuleFormData {

    private Long id;

    @NotBlank(message = "司机运营区不能为空")
    private String driverRegionId;
    private Boolean isActive;

    @NotBlank(message = "司机发起免责取消次数不能为空")
    private String cancelFrequency;

    @NotNull(message = "司机发起免责取消次数不能为空")
    @Min(value = 0, message = "不能小于0")
    @Max(value = 10, message = "不能大于10")
    private Integer cancelTimes;

    @NotNull(message = "司机有责取消扣阳光分不能为空")
    @Min(value = 1, message = "不能小于1")
    @Max(value = 99, message = "不能大于99")
    private Integer driverCancelScore;

    @NotNull(message = "司客服取消司机有责扣阳光分不能为空")
    @Min(value = 1, message = "不能小于1")
    @Max(value = 99, message = "不能大于99")
    private Integer csCancelScore;

    @NotNull(message = "司机有责取消暂停接单时长不能为空")
    @Min(value = 1, message = "不能小于1")
    @Max(value = 99, message = "不能大于99")
    private Integer pauseTime;

    @NotNull(message = "扣分持续时间不能为空")
    @Min(value = 1, message = "不能小于1")
    @Max(value = 99, message = "不能大于99")
    private Integer deductionDuration;

}
